<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: header.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */
?>
<table width="100%" id="header" cellspacing="0" cellpadding="0">
  <tr>
    <td height="1" width="350" valign="top">
    	&nbsp;
    </td>
    <td align="right" valign="top">
    	<table width="100%" cellspacing="0" cellpadding="10">
    		<tr>
    			<td width="77%" align="right">
    				<?php
						$languages = get_languages();
						
						if(!isset($_SESSION['language_code'])) 
							$_SESSION['language_code'] = DEFAULT_LANGUAGE;
							
						if(sizeof($languages) > 1) {
							echo '<span class="language_flags dn">';
							for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
								if($languages[$i]['code'] != $_SESSION['language_code'])
									echo '<a href="'.href_link(basename($_SERVER['SCRIPT_NAME']), 'language='.$languages[$i]['code'].'&'.get_all_get_params(array('language'))).'">
											'.image(DIR_WS_LANGUAGES . $languages[$i]['directory'] .'/'. $languages[$i]['image'], $languages[$i]['name']).'
										</a> ';
							}
							echo '</span>';
						}
					?>
    			</td>
    			<td id="datetime" align="right">
					<span class="clock dn">
						<?php 
						if($_SESSION['languages_id'] == '1' && $_SESSION['language'] == 'german')
							echo $tage[date('w')].', '.date('j').'. '.$monate[date('n')].' '.date('Y').' <span id="uhr"></span>';
						else
							echo date('l').', '.date('F').' '.date('j').', '.date('Y').' <span id="uhr"></span>';
						?>
					</span>
    			</td>
    		</tr>
			<?php if(SESSION_REFRESH_SESSION == 'true') { ?>
    			<tr>
    				<td align="right" colspan="2" class="session_counter">
    					<span id="sessioncounter" class="dn"></span>
    				</td>
    			</tr>
   			<?php } ?>
    	</table>
    </td>
  </tr>
  <tr>
  	<td class="header_links cursor" width="50%" valign="bottom" align="left" onclick="document.location.href='start.php'">&nbsp;</td>
  	<td class="header_links" valign="bottom" align="right">
  		<a href="../index.php" target="_blank" class="headerLink" title="Ihr Shop"><?php echo TEXT_HEADER_LINKS_SHOP;?></a>
  		<a href="http://www.seo-mercari.de" target="_blank" class="headerLink" title="SEO:mercari Onlineshop">SEO:mercari</a>
  		<a href="http://forum.seo-mercari.de/" target="_blank" class="headerLink" title="Zum Support-Forum"><?php echo TEXT_HEADER_LINKS_BOARD;?></a>
  		<a href="<?php echo href_link(FILENAME_LOGOUT);  ?>" class="headerLink" title="Ausloggen"><?php echo TEXT_HEADER_LINKS_LOGOUT;?></a>
  	</td>
  </tr>
</table>
<noscript>Wir haben erkannt, das Sie im Browser Javascript deaktiviert haben. Für den Adminbereich wird Javascript aber unbedingt benötigt!</noscript>
<?php include('includes/column_top.php'); ?>
<script type="text/javascript" src="includes/javascript/admin_footer_panel.js"></script>
<script type="text/javascript" src="includes/javascript/tooltip.js"></script>
<div id="footpanel">
    <ul id="mainpanel">
        <li><a href="<?php echo href_link('start.php'); ?>" class="home"><small><?php echo 'Startseite' ?></small></a></li>
		<li><a href="<?php echo href_link('orders.php', getMenuID('orders')); ?>" class="orders"><?php echo HEADER_TITLE_ORDERS ?><small><?php echo HEADER_TITLE_ORDERS ?></small></a></li>
        <li><a href="<?php echo href_link('customers.php', getMenuID('customers')); ?>" class="customers"><?php echo HEADER_TITLE_CUTOMERS ?><small><?php echo HEADER_TITLE_CUTOMERS ?></small></a></li>
        <li><a href="<?php echo href_link('content_manager.php', getMenuID('content_manager')); ?>" class="content"><?php echo HEADER_TITLE_CONTENT_MANAGER ?><small><?php echo HEADER_TITLE_CONTENT_MANAGER ?></small></a></li>
        <li><a href="<?php echo href_link('categories.php', getMenuID('categories')); ?>" class="cat"><?php echo HEADER_TITLE_CATEGORIES ?><small><?php echo HEADER_TITLE_CATEGORIES ?></small></a>
        <li><a href="<?php echo href_link('blog.php', getMenuID('blog')); ?>" class="blog">Blog<small><?php echo 'Blog' ?></small></a>
		<li id="credit"><a href="<?php echo href_link('credits.php', getMenuID('credits')) ?>" class="credits"></a></li>
		<?php if($uri == 'start') { ?>
			<li class="widget_zippel"><span onclick="widgetConfig()">Widget-Config</span></li>
		<?php } ?>
		<li class="project_version">
			<em><?php echo PROJECT_VERSION.PROJECT_VERSION_TYPE ?></em>
		</li>
    </ul>
	<?php
		if($uri == 'start')
			include('includes/functions/widgets/config.php');
	?>
</div>